<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormSection" Src="~/_controltemplates/InputFormSection.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormControl" Src="~/_controltemplates/InputFormControl.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ButtonSection" Src="~/_controltemplates/ButtonSection.ascx" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TemplateLibraryConnectorConfig.aspx.cs"
    Inherits="TemplateLibraryConnector.TemplateLibraryConnectorConfig"
    DynamicMasterPageFile="~masterurl/default.master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
    <SharePoint:FormattedStringWithListType ID="FormattedStringWithListType1" runat="server"
        String="Template Library Connector settings" LowerCase="false" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server">
    <%--<SharePoint:FormattedStringWithListType ID="FormattedStringWithListType2" runat="server" String="Template Library Connector settings:" LowerCase="false" />--%>
<%--    <a id="onetidListHlink" href="<% SPHttpUtility.AddQuote(SPHttpUtility.UrlPathEncode(List.DefaultViewUrl,true),Response.Output);%>">
        <%SPHttpUtility.HtmlEncode(List.Title, Response.Output);%></a>--%>

    <a id="onetidListHlink" HREF=<%SPHttpUtility.AddQuote(SPHttpUtility.UrlPathEncode(List.DefaultViewUrl,true),Response.Output);%>><%SPHttpUtility.HtmlEncode(List.Title,Response.Output);%></a>&#32;<SharePoint:ClusteredDirectionalSeparatorArrow ID="ClusteredDirectionalSeparatorArrow1" runat="server" /> <a HREF=<%SPHttpUtility.AddQuote(SPHttpUtility.UrlPathEncode(GetLibrarySettingsUrl(HttpContext.Current.Request.UrlReferrer), true),Response.Output);%>> <SharePoint:FormattedStringWithListType ID="FormattedStringWithListType5" runat="server" String="Document Library Settings" LowerCase="false" /></a>&#32;<SharePoint:ClusteredDirectionalSeparatorArrow ID="ClusteredDirectionalSeparatorArrow2" runat="server" />
    <SharePoint:EncodedLiteral ID="EncodedLiteral1" runat="server" text="Template Library Connector Settings" EncodeMethod='HtmlEncode'/>

</asp:Content>
<asp:Content ID="Content13" ContentPlaceHolderID="PlaceHolderMain" runat="server">
    <div>
        <asp:TextBox runat="server" ID="TextError" Visible="false" BorderColor="Red" ForeColor="Red" Width="100%">
        </asp:TextBox>
    </div>
    <table border="0" width="100%" cellspacing="0" cellpadding="0" class="ms-descriptiontext">
        <wssuc:InputFormSection runat="server" Title="Enable">
            <template_description>
		<SharePoint:FormattedStringWithListType ID="FormattedStringWithListType3" runat="server"
			String="" />
	</template_description>
            <template_inputformcontrols>
			<wssuc:InputFormControl runat="server" LabelText="Enable Template Library Connection for this list" >
				<Template_Control>
					<table class="ms-authoringcontrols" width="100%">
						<tr>
							<td nowrap="nowrap" width="50%">
								<asp:RadioButton id="RadEnableTLCYes"
									GroupName="EnableTLC"
									Text="<%$Resources:wss,multipages_yes%>"
									Checked="true"
									runat="server"/>
							</td>
							<td nowrap="nowrap">
								<asp:RadioButton id="RadEnableTLCNo"
									GroupName="EnableTLC"
									Text="<%$Resources:wss,multipages_no%>"
									runat="server"/>
							</td>
						</tr>
					</table>
				</Template_Control>
			</wssuc:InputFormControl>
   </template_inputformcontrols>
        </wssuc:InputFormSection>
        <wssuc:InputFormSection runat="server" Title="Source">
            <template_description>
		<SharePoint:FormattedStringWithListType ID="FormattedStringWithListType4" runat="server"
			String="Settings related to the source template library" />
	</template_description>
            <template_inputformcontrols>
			<wssuc:InputFormControl runat="server" LabelText="Pick a document library to serve templates to the current library.">
				<Template_Control>
					<table class="ms-authoringcontrols" width="100%">
						<tr>
							<td nowrap="nowrap" width="100%">
								<asp:TreeView runat="server" ID="TreeSourceDocLib" ShowCheckBoxes="Leaf" style="height: 250px; overflow:auto; overflow-x:hidden;" BackColor="White" BorderStyle="Inset" BorderWidth="2">
									<NodeStyle Font-Size="10pt" />
								</asp:TreeView>
							</td>
						</tr>
					</table>
				</Template_Control>
			</wssuc:InputFormControl>
			<wssuc:InputFormControl runat="server" LabelText="Name the field in the template library whish holds the description for each template.">
				<Template_Control>
					<table class="ms-authoringcontrols" width="100%">
						<tr>
							<td nowrap="nowrap" width="100%">
								<asp:TextBox runat="server" ID="TextSourceDescField" />
							</td>
						</tr>
					</table>
				</Template_Control>
			</wssuc:InputFormControl>
            </template_inputformcontrols>
        </wssuc:InputFormSection>
        <wssuc:ButtonSection runat="server" ShowStandardCancelButton="true">
            <template_buttons>
		        <asp:Button UseSubmitBehavior="false" runat="server" class="ms-ButtonHeightWidth" OnClick="BtnSave_Click" Text="<%$Resources:wss,multipages_savebutton_text%>" id="BtnSave"/>
	        </template_buttons>
        </wssuc:ButtonSection>
    </table>
    <asp:Label runat="server" ID="TestLabel"></asp:Label>
</asp:Content>
